package com.gzu.ltms.service;

import com.gzu.ltms.entity.dto.OrderDTO;
import com.gzu.ltms.response.Response;
import com.mybatisflex.core.service.IService;
import com.gzu.ltms.entity.OrderDetail;

import java.util.List;

/**
 * 订单主表 服务层。
 *
 * @author mm
 * @since 2025-04-28
 */
public interface OrderDetailService extends IService<OrderDetail> {

    /**
     * 创建订单
     *
     * @param orderDTO
     * @return
     */
    Response<?> createOrder(OrderDTO orderDTO);

    /**
     * 获取所有订单
     *
     * @return
     */
    Response<List<OrderDetail>> getAllOrder();

    /**
     * 根据id获取订单
     *
     * @param id
     * @return
     */
    Response<OrderDetail> getOrderById(Long id);
}
